
import request from '@/utils/request';
import { ResultListShopRule } from './definitions/ResultListShopRule';
import { ShopRule } from './definitions/ShopRule';


export class ShopRuleController {

    static getAllUsingGETPath: string = "/v1/api/shopRule/all";

    async getAllUsingGET( headers?: any) : Promise<ResultListShopRule> {
      return request(`/v1/api/shopRule/all`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static selectOneUsingGETPath: string = "/v1/api/shopRule/selectOne";

    async selectOneUsingGET(id: any,  headers?: any) : Promise<ShopRule> {
      return request(`/v1/api/shopRule/selectOne?id=${id ?? "" }`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
}